package com.yf.dao;

import com.yf.bean.BreakpointBean;
import com.yf.entity.BreakpointEntity;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public class BreakpointDao extends BaseDao{
    public int addBreakpoint(BreakpointBean bean) {
        return sessionTemplate.insert(getStatement("addBreakpoint"), bean);
    }

    public List<BreakpointBean> getBreakpointByUid(BreakpointBean bean) {
        return sessionTemplate.selectList(getStatement("getBreakpointByUid"), bean);
    }

    public List<BreakpointEntity> getBreakpointByUidV2(BreakpointBean bean) {
        return sessionTemplate.selectList(getStatement("getBreakpointByUidV2"), bean);
    }


    public int updateBreakpoint(BreakpointBean bean) {
        return sessionTemplate.update(getStatement("updateBreakpoint"), bean);
    }
}
